/*
 * Powered By cuichen
 * Since 2014 - 2018
 */
package com.seeyoui.kensite.bussiness.orderlang.delivery.persistence;

import com.seeyoui.kensite.common.base.domain.EasyUIDataGrid;
import com.seeyoui.kensite.bussiness.orderlang.delivery.domain.Delivery;
import com.seeyoui.kensite.bussiness.orderlang.delivery.domain.DeliveryExamineProductVO;
import com.seeyoui.kensite.bussiness.orderlang.delivery.domain.DeliveryExamineTitleVO;
import com.seeyoui.kensite.bussiness.orderlang.delivery.domain.DeliveryVO;

import java.util.*;

import com.seeyoui.kensite.common.exception.CRUDException;

/**
 * Delivery
 * @author cuichen
 * @version 2.0
 * @since 1.0
 * @date 2018-03-01
 */

public interface DeliveryMapper {

	/**
	 * 根据ID查询单条数据
	 * @param id
	 * @return
	 */
	public Delivery findOne(String id);
	
	/**
     * 加载审批列表头部信息
     * @param id
     * @return
     */
    public DeliveryExamineTitleVO findDeliveryDetailForTitle(String id);
    
    /**
     * 加载审批列表商品信息
     * @param id
     * @return
     */
    public List<DeliveryExamineProductVO> findDeliveryDetailForProduct(String id);
	
	/**
	 * 查询数据集合
	 * @param delivery
	 * @return
	 */
	public List<Delivery> findList(Delivery delivery);
	
	/**
     * 查询数据集合 
     * @param delivery
     * @return
     */
    public List<DeliveryVO> findListRelationOrder(Map map);
	
	/**
	 * 查询所有数据集合
	 * @param delivery
	 * @return
	 */
	public List<Delivery> findAll(Delivery delivery);
	
	/**
	 * 查询数据总数
	 * @param delivery
	 * @return
	 */
	public int findTotal(Delivery delivery);
	
	/**
     * 查询数据总数
     * @param delivery
     * @return
     */
    public int findTotalRelationOrder(Map map);

	/**
	 * 查询数据总数排除当前数据
	 * @param delivery
	 * @return
	 */
	public int findExTotal(Delivery delivery);
	
	/**
	 * 数据新增
	 * @param delivery
	 */
	public void save(Delivery delivery);
	
	/**
	 * 数据修改
	 * @param delivery
	 */
	public void update(Delivery delivery);
	
	/**
	 * 数据删除
	 * @param listId
	 */
	public void delete(List<String> listId);
	
	/**
	 * 数据假删除
	 * @param delivery
	 */
	public void remove(Delivery delivery);
	
}